package gui;
import gui.funcionarios.FuncionarioPanel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;

import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.LayoutStyle;
import javax.swing.border.BevelBorder;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuCadastra.java
 *
 * Created on 06/11/2010, 12:51:36
 */

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 *
 * @author Caio
 */
public class MenuCadastra extends javax.swing.JPanel {
	
    /** Creates new form MenuCadastra */
    public MenuCadastra() {
        initComponents();
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        laboratorio = new javax.swing.JButton();
        funcionario = new javax.swing.JButton();
        disciplina = new javax.swing.JButton();
        this.setLayout(null);
        this.add(disciplina);
        professor = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        aluno = new javax.swing.JButton();
        serie = new javax.swing.JButton();
        sala = new javax.swing.JButton();
        diretor = new javax.swing.JButton();
        this.add(diretor);
        this.add(jLabel1);
        this.add(aluno);
        this.add(sala);
        this.add(funcionario);
        turma = new javax.swing.JButton();
        this.add(turma);
        this.add(laboratorio);
        this.add(serie);
        this.add(professor);

        laboratorio.setText("Laboratorio");
        laboratorio.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        laboratorio.setBackground(new java.awt.Color(255,255,255));
        laboratorio.setFont(new java.awt.Font("Segoe UI",0,18));
        laboratorio.setBounds(169, 328, 213, 27);
        laboratorio.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                laboratorioMouseClicked(evt);
            }
        });

        funcionario.setText("Funcionario");
        funcionario.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        funcionario.setBackground(new java.awt.Color(255,255,255));
        funcionario.setFont(new java.awt.Font("Segoe UI",0,18));
        funcionario.setBounds(169, 256, 213, 27);
        funcionario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                funcionarioMouseClicked(evt);
            }
        });

        disciplina.setText("Disciplina");
        disciplina.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        disciplina.setBackground(new java.awt.Color(255,255,255));
        disciplina.setFont(new java.awt.Font("Segoe UI",0,18));
        disciplina.setBounds(169, 184, 213, 27);
        disciplina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                disciplinaMouseClicked(evt);
            }
        });

        professor.setText("Professor");
        professor.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        professor.setBackground(new java.awt.Color(255,255,255));
        professor.setFont(new java.awt.Font("Segoe UI",0,18));
        professor.setBounds(169, 400, 213, 27);
        {
        	caixaMaior = new JLabel();
        	this.add(caixaMaior);
        	caixaMaior.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        	caixaMaior.setBounds(69, 86, 677, 415);
        }
        {
        	jButton1 = new JButton();
        	this.add(jButton1);
        	jButton1.setText("Voltar");
        	jButton1.setBackground(new java.awt.Color(255,255,255));
        	jButton1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        	jButton1.setBounds(672, 545, 97, 25);
        	jButton1.addMouseListener(new MouseAdapter() {
        		public void mouseClicked(MouseEvent evt) {
        			GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.primeiroMenu);
        			GerenciadorDeJanelas.window.setVisible(true);
        		}
        	});
        }
        professor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                professorMouseClicked(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Arial",0,36));
        jLabel1.setText("Escolha uma das opcoes para cadastrar");
        jLabel1.setForeground(new java.awt.Color(0,102,102));
        jLabel1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        jLabel1.setBounds(67, 12, 683, 64);

        aluno.setText("Aluno");
        aluno.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        aluno.setBackground(new java.awt.Color(255,255,255));
        aluno.setFont(new java.awt.Font("Segoe UI",0,18));
        aluno.setBounds(169, 126, 213, 27);
        aluno.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                alunoMouseClicked(evt);
            }
        });

        serie.setText("Serie");
        serie.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        serie.setBackground(new java.awt.Color(255,255,255));
        serie.setFont(new java.awt.Font("Segoe UI",0,18));
        serie.setBounds(428, 361, 197, 27);
        serie.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                serieMouseClicked(evt);
            }
        });

        sala.setText("Sala");
        sala.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        sala.setBackground(new java.awt.Color(255,255,255));
        sala.setFont(new java.awt.Font("Segoe UI",0,18));
        sala.setBounds(428, 223, 197, 27);
        sala.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                salaMouseClicked(evt);
            }
        });

        diretor.setText("Diretor");
        diretor.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        diretor.setBackground(new java.awt.Color(255,255,255));
        diretor.setFont(new java.awt.Font("Segoe UI",0,18));
        diretor.setBounds(428, 165, 197, 27);
        diretor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                diretorMouseClicked(evt);
            }
        });

        turma.setText("Turma");
        turma.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        turma.setBackground(new java.awt.Color(255,255,255));
        turma.setFont(new java.awt.Font("Segoe UI",0,18));
        turma.setBounds(428, 289, 197, 27);
        turma.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                turmaMouseClicked(evt);
            }
        });

        this.setSize(800, 600);
        this.setBackground(new java.awt.Color(204,204,255));
        this.setForeground(new java.awt.Color(0,102,102));
    }// </editor-fold>

    private void alunoMouseClicked(java.awt.event.MouseEvent evt) {
        GerenciadorDeJanelas.window.setVisible(false);
        GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraAlunoPanel);
        GerenciadorDeJanelas.window.setVisible(true);
        
    }

    private void disciplinaMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraDisciplina);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void funcionarioMouseClicked(java.awt.event.MouseEvent evt) {
    	
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraFuncionario);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void laboratorioMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.cadastraLaboratorioPanel.setVisible(true);
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraLaboratorioPanel);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void professorMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.cadastraProfessor.setVisible(true);
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraProfessor);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void salaMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraSala);
        GerenciadorDeJanelas.window.setVisible(true);
    }

    private void diretorMouseClicked(java.awt.event.MouseEvent evt) {

		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraDiretor);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void turmaMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraTurma);
		GerenciadorDeJanelas.window.setVisible(true);
    }

    private void serieMouseClicked(java.awt.event.MouseEvent evt) {
    	GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.cadastraSerie);
		GerenciadorDeJanelas.window.setVisible(true);
    }


    // Variables declaration - do not modify
    private javax.swing.JButton aluno;
    private javax.swing.JButton diretor;
    private javax.swing.JButton disciplina;
    private javax.swing.JButton funcionario;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JButton laboratorio;
    private javax.swing.JButton professor;
    private javax.swing.JButton sala;
    private javax.swing.JButton serie;
    private javax.swing.JButton turma;
    private JButton jButton1;
    private JLabel caixaMaior;
    // End of variables declaration

}
